package com.senseuni.da.db.entity

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey

@Entity(tableName = "upgrade")
class UpgradeEntity {
    @JvmField
    @PrimaryKey(autoGenerate = true)
    var id: Long = 0
    @JvmField
    var url: String? = null

    @JvmField
    @ColumnInfo(name = "version_code")
    var versionCode: Int? = null
    @JvmField
    var version: String? = null
    @JvmField
    var md5: String? = null
    @JvmField
    var content: String? = null

    @JvmField
    @ColumnInfo(name = "file_size")
    var fileSize: Long? = null

    @JvmField
    @ColumnInfo(name = "local_path")
    var localPath: String? = null
    @JvmField
    var download = false

    @JvmField
    @ColumnInfo(name = "create_time")
    var createTime: Long = 0
}